var electronInstaller = require('electron-winstaller');
var path = require("path");

resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: path.join('./out/kefu-pc-client-win32-ia32'), //刚才生成打包文件的路径
    outputDirectory: path.join('./out/installer'), //输出路径
    authors: '客服PC客户端', // 作者名称
    exe: 'kefu-pc-client.exe', 
    noMsi: true, 
    iconUrl: 'https://gofly.v1kf.com/static/images/favicon.ico',
    setupIcon: path.join('./favicon.ico'),
  });

resultPromise.then(() => {
    console.log("打包成功")
}, (e) => {
    console.log(`错误333333: ${e.toString()}`)
    // console.log(`错误: ${e.message}`)
});